package com.i72;


import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class QM {


    @Pointcut("@target(org.springframework.stereotype.Service)")
    public void  point(){

    }

    @Before("point()")
    public void before(org.aspectj.lang.JoinPoint joinPoint){

        System.out.println("before");
    }


    @After("point()")
    public void after(org.aspectj.lang.JoinPoint joinPoint){
        System.out.println("after");
    }

    @AfterReturning("point()")
    public void afterReturn(org.aspectj.lang.JoinPoint joinPoint){
        System.out.println("afterReturn");
    }

    @AfterThrowing("point()")
    public void afterThrowing(){
        System.out.println("point");

    }


    @Around("point()")
    public void around(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint){
        System.out.println("around");
    }


}
